//
//  DetailViewController.m
//  10-HomeWork
//
//  Created by 李昊林 on 16/7/27.
//  Copyright © 2016年 李昊林. All rights reserved.
//

#import "DetailViewController.h"
#import "UIView+Frame.h"
@interface DetailTableViewCell ()

@end

@implementation DetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _carImageView = [[UIImageView alloc] init];
        _carImageView.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:_carImageView];
        _carIntroduce = [[UILabel alloc] init];
        _carIntroduce.backgroundColor = [UIColor colorWithRed:0.384 green:0.963 blue:1.000 alpha:1.000];;
        [self.contentView addSubview:_carIntroduce];
    }
    return self;
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _carImageView.frame = CGRectMake(5, 5, (self.contentView.hl_width - 15) / 3, self.contentView.hl_height - 10);
    _carIntroduce.frame = CGRectMake((self.contentView.hl_width - 15) / 3 + 10, 5, (self.contentView.hl_width - 15) * 2 / 3, self.contentView.hl_height - 10);
}


    

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
